package com.itboy.mall.sms.skufullreduction.service;

import com.itboy.mall.sms.skufullreduction.domain.MallSkuFullReduction;
import com.itboy.mall.sms.skufullreduction.vo.MallSkuFullReductionVo;
import com.itboy.mall.sms.skufullreduction.bo.MallSkuFullReductionQueryBo;
import com.itboy.mall.sms.skufullreduction.bo.MallSkuFullReductionAddBo;
import com.itboy.mall.sms.skufullreduction.bo.MallSkuFullReductionEditBo;
import com.itboy.common.core.mybatisplus.core.IServicePlus;
import com.itboy.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 商品满减信息Service接口
 *
 * @author itboy
 * @date 2021-08-08
 */
public interface IMallSkuFullReductionService extends IServicePlus<MallSkuFullReduction> {
	/**
	 * 查询单个
	 * @return
	 */
	MallSkuFullReductionVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<MallSkuFullReductionVo> queryPageList(MallSkuFullReductionQueryBo bo);

	/**
	 * 查询列表
	 */
	List<MallSkuFullReductionVo> queryList(MallSkuFullReductionQueryBo bo);

	/**
	 * 根据新增业务对象插入商品满减信息
	 * @param bo 商品满减信息新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(MallSkuFullReductionAddBo bo);

	/**
	 * 根据编辑业务对象修改商品满减信息
	 * @param bo 商品满减信息编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(MallSkuFullReductionEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
